package com.lei2j.command;

public class GarageDoorOpenCommand implements Command {

	private GarageDoor garageDoor;
	
	public GarageDoorOpenCommand(GarageDoor garageDoor) {
		this.garageDoor = garageDoor;
	}
	
	@Override
	public void execute() {
		garageDoor.lightOn();
	}

	@Override
	public void undo() {
		garageDoor.lightOff();
	}
}
